

<div id="view-content">
	<table>
            <tr><td>Givenname</td><td>Familyname</td><td>Email</td><td>Actie</td><td></td></tr>
    <?php foreach ($this->entries as $entry): ?>
            
            <tr><td><?php echo $this->escape($entry->Givenname) ?></td><td><?php echo $this->escape($entry->Familyname) ?></td>
    <td><?php echo $this->escape($entry->Email) ?></td><td><a href="<?php echo $this->url(array(
        'controller' => 'user',
        'action'     => 'details',
        'userid'    => $entry->id,
        
    ),
    'default',
    true) ?>" class="button">details</a>
        <?php if($entry->Active == true)
    {
        echo $this->ajaxLink("suspend", $this->url(array('controller' => 'user',
        'action'     => 'suspenduser',
        'userid' => $entry->id,
        
    ),
    'default',
    true),
                    array('update' => "#answer$entry->id", 'class'=>'button'));
    }
        ?>
    <?php if($entry->Active == false) {
        echo $this->ajaxLink("activate", $this->url(array('controller' => 'user',
        'action'     => 'unsuspenduser',
        'userid' => $entry->id,
        
    ),
    'default',
    true),
                    array('update' => "#answer$entry->id", 'class'=>'button'));
    }?>
        <?php echo $this->ajaxLink("delete", $this->url(array('controller' => 'user',
        'action'     => 'deleteuser',
        'userid' => $entry->id,
         
    ),
    'default',
    true),
                    array('update' => "#answer$entry->id", 'class'=>'button'));?></td><td><span id="answer<?php echo $entry->id ?>"></span></td></tr>
    <?php endforeach ?>
        </table>
</div>